import request from '../util/request'

// 用户登录(绑定账户)
export function login(data:{userName:string,password:string}){
    return request.post('dologin',{
        userName:data.userName,
        password:data.password
    })
}

// 退出登录（解除绑定）
export function logout(){
    return request.get('dologout');
}